import { useNavigate } from 'react-router-dom'
function About() {
    const navigate = useNavigate();
    const goHome = () => {
        // 跳转到主页
        navigate('/')
    }
    return <>
        <h1>这是关于页</h1>
        <button onClick={goHome}>返回主页</button>
    </>
}

export default About;